#include "os_thread.h"
#include "rpcclient.h"


RPCClient::RPCClient()
{

}

RPCClient::~RPCClient()
{

}

void RPCClient::set_sock(int sock)
{
	m_sock = sock;
}

int RPCClient::startThread()
{
	if (os_thread_create(RPCClient::ThreadProc, this, &m_pThread) == -1) {
		return -1;
	}
	return 0;
}

int RPCClient::ThreadProc(void *instance)
{
	if (!instance) {
		return -1;
	}

	RPCClient *client = (RPCClient *)instance;
	return client->run();
}

int RPCClient::run()
{
	return 0;
}

